package com.cray.intelligenthydrologyback.client.domain.entity;

import com.cray.intelligenthydrologyback.client.model.TreeEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 设备分类对象 hydrologic_device_class
 */
@Data
public class HydrologicDeviceClass extends TreeEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 标识符
     */
    private Long id;

    /**
     * 分类名称
     */
    private String name;

    /**
     * 简述
     */
    private String shortDesc;

    /**
     * 是否删除，0：是，1：否
     */
    private String delFlag;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("parentId", getParentId())
                .append("shortDesc", getShortDesc())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
